package com.timous.service;


import com.timous.Entity.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {

    /*保存要发布的类型*/
    Tag saveType(Tag tag);

    /*根据id查找type*/
    Tag getTag(Long id);

    /*分页*/
    Page<Tag> listType(Pageable pageable);

    /*更新type*/
    Tag updateTag(Long id, Tag tag);

    /*刪除type*/
    void deleteTag(Long id);

    Tag getTagByName(String name);

    List<Tag> listTag();

    List<Tag> listTag(String ids);

    List<Tag> listTagTop(Integer size);

}
